package s0404.service;

import s0404.entity.School;
import s0404.exception.BaseException;
import s0404.util.Condition;
import s0404.util.Pagination;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

/**
 * @author 刘永渠
 * @project xg22
 * @date 2024/3/27
 */
public interface SchoolService {
    Collection<School> findAll(Pagination pagination) throws SQLException, BaseException;
    Collection<School> findAll(Pagination pagination, List<Condition> conditionList) throws SQLException, BaseException ;
    Collection<School> findAll() throws SQLException, BaseException ;
    School find(Integer id) throws SQLException,BaseException ;
    boolean delete(Integer id) throws SQLException, BaseException, InvocationTargetException;

    boolean add(School schoolToAdd)throws SQLException, BaseException, InvocationTargetException;
}
